package com.thinking.dubbo.service;

import com.thinking.dubbo.api.BusinessService;
import com.thinking.dubbo.pojo.Business;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;
import java.util.List;
/**
 * @ClassName BusinessService
 * @Description TODO
 * @Author tangsixiang@gmail.com
 * @Date 2023/6/3 18:10
 * @Version 1.0
 */
@Slf4j
@Service
public class DubboService {

    @DubboReference
    BusinessService businessService;
    public List<Business> queryData(String lang){
        List<Business> businesses = businessService.queryBusiness(lang);
         log.info("查询数据“{}”",businesses);
        return  businesses;
    }


}
